<?php
class Poll_Widget_LatestQuestionsController extends Engine_Content_Widget_Abstract
{ 
    public function indexAction() {
        $params['privacy'] = 'public';
        $this->view->paginator = $paginator = Engine_Api::_()->poll()->pollPaginator($params);
        $paginator->setItemCountPerPage(5);
        if (!count($paginator)) return $this->setNoRender(true);
    }
}
